﻿using System.Threading.Tasks;
using DingtalkChatbotSdk;
using Missbot.Common;

namespace Missbot.Service.Dingtalk
{
    public class DingtalkSvc
    {
        private static string _Hook => Configger<AIConfigBase>.AIConfig.DingTalkHook;
        
        public static void Send(string msg)
        {
            Task.Run(async () => await DingDingClient.SendMessageAsync(_Hook, msg));
        }
    }
}